package com.persondemo.videoappliction.ui.publish;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.persondemo.videoappliction.R;
import com.persondemo.videoappliction.component.ApplicationComponent;
import com.persondemo.videoappliction.ui.base.BaseActivity;
import com.persondemo.videoappliction.ui.base.BaseFragment;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;

/**
 * Created by Administrator on 2018/4/18.
 */

public class PubLishActivity extends BaseActivity {
    @BindView(R.id.put_img_liner)
    LinearLayout putImgLiner;
    @BindView(R.id.put_duanzi_liner)
    LinearLayout putDuanziLiner;
    @BindView(R.id.put_meizhi_liner)
    LinearLayout putMeizhiLiner;



    @Override
    public int getContentLayout() {
        return R.layout.module_fragment_publish;
    }

    @Override
    public void initInjector(ApplicationComponent appComponent) {

    }

    @Override
    public void bindView(View view, Bundle savedInstanceState) {
    }

    @Override
    public void initData() {

    }

    @OnClick({R.id.put_img_liner, R.id.put_duanzi_liner, R.id.put_meizhi_liner})
    public void onViewClicked(View view) {
        Intent intent=new Intent(PubLishActivity.this,PutActivity.class);
        Bundle bundle=new Bundle();
        switch (view.getId()) {
            case R.id.put_img_liner:
                bundle.putString("type","2");
                intent.putExtras(bundle);
                startActivity(intent);
             overridePendingTransition(R.anim.fade_in,R.anim.fade_out);
                break;
            case R.id.put_duanzi_liner:
                bundle.putString("type","1");
                intent.putExtras(bundle);
                startActivity(intent);
               overridePendingTransition(R.anim.fade_in,R.anim.fade_out);
                break;
            case R.id.put_meizhi_liner:
                bundle.putString("type","3");
                intent.putExtras(bundle);
                startActivity(intent);
            overridePendingTransition(R.anim.fade_in,R.anim.fade_out);
                break;
        }
    }

    @Override
    public void onRetry() {

    }
}
